package cn.webrx;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

public class Set5 {
    public static void main(String[] args) {
        Set<Integer> s1 = new HashSet<>(List.of(1, 2, 3));
        System.out.println(s1);
        Set<Integer> s2 = new HashSet<>(s1);
        Set<Integer> s3 = new HashSet<>(List.of(4, 5, 3, 2));
        System.out.println(s3);
        //System.out.println(s1);
        //System.out.println(s2);
        s1.removeAll(s3);

        s2.removeAll(s1);
        System.out.println(s2);

    }
}
